<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理页面</title>
<meta content="" name="description">
<script type="text/javascript" src="/j-tool/jquery.js"></script>
<style>
	#deal{position:absolute;width:100%;top: 0px; left: 251px;border: 1px solid #B7C2C9;}
</style>
<script>
	$(window).resize(function(){setIframe();});	

	function setIframe()
	{
		var h = $("iframe").contents().find("body").height();
		var w = document.body.clientWidth - 254;
		if(w < 770)
		{
			w = 770;
		}

		if(h < $('.left').height())
		{
			h = $('.left').height();
		}else{
			$('.left').height(h);
		}
		
		$('#deal').css({'width':w,'height':h});
	}

	function checkonline()
	{
		$.ajax({
		   type: "POST",
		   url: "admins_ajax.php",
		   data: 'action=online',
		   success: function(msg){
				msg == 'outline'?location.href="/login.php":'';
		   }
		});
	}
</script>
<body>
<!--{include file="left.html"}-->
<iframe name="deal" id="deal" scrolling="auto" frameborder="0" onload="setIframe();" onclick = "checkonline();"></iframe>
</body>
</html>